<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <link href="__PUBLIC__/admin/css/style.css" rel="stylesheet" type="text/css" />
    <script language="JavaScript" src="__PUBLIC__/admin/js/jquery.js"></script>
</head>
<style type="text/css">
    .number-list{float: left;width:35px;background: #09c;height:35px;display: block;border-radius: 50%;color:#fff;margin: 5px;line-height: 35px;}
</style>
<body>
    <div class="formbody">
        <div class="formtitle"><span>排号信息</span></div>
        <form action="" method="post">
            <ul class="forminfo">
                <table class="tablelist">
                    <thead>
                        <tr>
                            <th style="width:100px;">餐桌类型</th>
                            <th>排队号数</th>
                        </tr>
                    </thead>
                    <tbody>
                        <volist name="info" id="top">
                            <tr>
                                <td>
                                    {$top.table_cate_name}
                                </td>
                                <td>
                                    <volist name="top['tabList']" id="vo" key="k">
                                        <label class="number-list">{$vo}<input type="checkbox" style="display: none;" class="child" onclick="return _delete({$vo},{$top.table_cate_id})" name="son[]" value="{$k}">
                                        </label>   
                                    </volist>
                                </td>
                            </tr>
                        </volist>

                    </tbody>

                </table>
                <br/>
                <li>
                        <?php
                            if(!$info){
                                echo '暂无数据!';
                            }
                        ?>
                </li>

            </ul>
        </form>
    </div>
</body>
<script type="text/javascript">
function _delete(number,typeId){
  if(confirm("是否确定要踢出排队队列？")){
    $.post("{:U('Getnum/is_eat')}", {number:number,typeId:typeId},
        function(data){
            window.location.reload();        
        });
  }
}
</script>
</html>
